package demo.Test;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/8/16-08-16-15:37
 * @Description：demo.Test
 */
public class demo1 {


    public static void main(String[] args) {
        int total_rabbit;
        int month = 10;
        String s = "tmmzuxt";
        System.out.println(lengthOfLongestSubstring(s));
        total_rabbit  = rabbit_count(month);
        System.out.println(total_rabbit);
    }
    public static int lengthOfLongestSubstring(String s) {
        int count = 1;
        int max =0;
        int index = 0;
        
        return max;
    }

    private static int rabbit_count(int month) {

        if(month == 0){
            return 2;
        }else if(month == 1){
            return 2;
        }else if(month == 2){
            return 2;
        } else if(month == 3){
            return 4;
        }else{
            return rabbit_count(month-1) + rabbit_count(month-2);
        }
    }
}
